{extend name="base" /}
{block name="body"}
<div class="layui-card">
    <div class="layui-card-body">
        <form action="{:request()->url()}" class="layui-form" method="post">
            {if input('group')}
            <input type="hidden" name="group" value="{:input('group')}" autocomplete="off" class="layui-input">
            {else}
            <div class="layui-form-item">
                <label class="layui-form-label">标识</label>
                <div class="layui-input-inline">
                    <select name="group">
                        {:list_select('hook_group',$data.group)}
                    </select>
                </div>
            </div>
            {/if}
            <div class="layui-form-item">
                <label class="layui-form-label">名称</label>
                <div class="layui-input-inline">
                    <input type="text" name="name" value="{$data.name|default=''}" autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-input-block">
                    <button class="layui-btn" id="layuiadmin-app-form-submit" lay-filter="i" lay-submit="">保存</button>
                    <button class="layui-btn layui-btn-primary" type="reset">重置</button>
                </div>
            </div>
        </form>
    </div>
</div>


{/block}